package com.songVersion.controller;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class JsonServlet extends HttpServlet
{
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException
	{
		String type = req.getParameter("type");
		if ("spotify".equals(type))
			processSpotiy(req);
		else if ("youtube".equals(type))
			processYoutube(req);
		
		resp.getWriter().print("OK");
	}

	private void processYoutube(HttpServletRequest req)
	{
		// TODO Auto-generated method stub
		
	}

	private void processSpotiy(HttpServletRequest req)
	{
		// TODO Auto-generated method stub
		
	}
}
